﻿public class Product {
    public readonly string name;
    public readonly int num;
    public readonly int unitPrice;
    public Product(string name, int num, int price) {
        this.name = name;
        this.num = num;
        this.unitPrice = price;
    }

    public override bool Equals(object? obj) {
        var other = obj as Product;
        return name.Equals(other.name) && num == other.num;
    }
    public string ToString() {
        return $"name:{name} number:{num}";
    }
}